<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>demo</title>
	</head>
	<body>
		<script type="text/javascript" >
			function Student(name,age){
				this.name = name;
				this.age = age
			}
			const s1 = new Student('Tom',18)
			const s2 = new Student('峰峰',19)
			const s3 = new Student('阿远',20)

			Student.prototype.test = ()=>{
				alert(1)
			}

			// console.log(Student.prototype) //输出Student的显式原型属性的值
			// console.log(s1.__proto__) //输出s1的隐式原型属性的值

			// console.log(s1.__proto__ === Student.prototype)
			console.log(s1)
			console.log(s2)
			console.log(s3)
		</script>
	</body>
</html>